package ce.com.cenewbluesdk.entity.k3;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/11/21.
 */
public class Dev_NFC_Info implements Serializable {
     /* typedef enum
    {
        METRO_NULL = 0,
                METRO_SHENZHEN,		//深圳通
                METRO_SANGHAI,		//上海通
                METRO_BEIJING,		//北京通
    }METRO_TYPE;
    typedef enum
    {
        UNIONPAY_NULL = 0,
                UNIONPAY_ICBC,		//工商卡
                UNIONPAY_CCB,			//建行卡
                UNIONPAY_ABC，		//农行卡
    }UNIONPAY_TYPE;

    typedef struct
    {
        unsigned char	metro;		//地铁通，详见METRO_TYPE
        unsigned char unionpay;		//银联通，详见UNIONPAY_TYPE
    }nfc_info_struct;*/

    private byte metro;        //地铁通，详见METRO_TYPE
    private byte unionpay;        //银联通，详见UNIONPAY_TYPE

    public Dev_NFC_Info(byte[] bytes) {
        this.metro = bytes[0];
        this.unionpay = bytes[1];
    }

    public static int getItemSize() {
        return 2;
    }

    @Override
    public String toString() {
        return "Dev_NFC_Info{" +
                "metro=" + metro +
                ", unionpay=" + unionpay +
                '}';
    }

    public byte getMetro() {
        return metro;
    }


    public byte getUnionpay() {
        return unionpay;
    }
}
